import request from '@/utils/request'

// 查询申请领养列表
export function listApplyAdoption(query) {
  return request({
    url: '/petSys/applyAdoption/list',
    method: 'get',
    params: query
  })
}

// 查询申请领养详细
export function getApplyAdoption(id) {
  return request({
    url: '/petSys/applyAdoption/' + id,
    method: 'get'
  })
}

// 新增申请领养
export function addApplyAdoption(data) {
  return request({
    url: '/petSys/applyAdoption',
    method: 'post',
    data: data
  })
}

// 修改申请领养
export function updateApplyAdoption(data) {
  return request({
    url: '/petSys/applyAdoption',
    method: 'put',
    data: data
  })
}

// 删除申请领养
export function delApplyAdoption(id) {
  return request({
    url: '/petSys/applyAdoption/' + id,
    method: 'delete'
  })
}



